using System.Collections.Generic;

namespace UFrame
{
    /// <summary>
    /// 负责统一切换状态机
    /// </summary>
    public class FSMInsight
    {
        public Dictionary<int, object> parameterDic = new Dictionary<int, object>();

        public void Notify(int id, object o)
        {
            if (parameterDic.ContainsKey(id))
            {
                parameterDic[id] = o;
            }
            else
            {
                parameterDic.Add(id, o);
            }

            Insight(id, o);
        }


        protected virtual void Insight(int id, object o)
        {
        }
    }
}